#include<iostream>
#include<sstream>
#include<string>
#include <algorithm>


int main()
{

  //string截取
  // std::string msg = "GET /a/b/c/.html http/1.0";
  // std::string method;
  // std::string url;
  // std::string version;
  // std::stringstream ss(msg);

  // ss >> method >> url >> version ;
  // std::cout << method <<std::endl;
  // std::cout << url << std::endl;
  // std::cout << version << std::endl;

  //大小写转换
  std::string method = "Get";
  std::cout << "method之前: " << method << std::endl;
  std::transform(method.begin(), method.end(), method.begin(), ::toupper);//从method的开头到结尾，结果重新写回method中，大写
  std::cout << "method之后: " << method << std::endl;

  return 0;
}
